﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>


<style type="text/css">
    #ctl00_MainerRegion_ZhengShouFanWeiDongJieControl___GridList_Div1
    {
        border-collapse: collapse;
        border: 1px solid #74a4c0;
        background-color: #FFFFFF;
        text-align: center;
        color: #a30101;
    }
    .style1
    {
        width: 100%;
    }
</style>
<script type="text/javascript">

    function CreateTable(str) {
        $("#dv1").InnerHtml = str;
    }

    
    function GetDays(yf) {
        var curDate = new Date();
        curDate.setMonth(yf + 1);
        curDate.setDate(0);
        return curDate.getDate();

    }
    function getfh() {
        location.href = "ZhengShouZBB.aspx";
    
    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black">
                &nbsp;&nbsp;信息系统值班表 </font>
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="center" class="window_tab_list"
    style="width: 98%; margin: 20px 0 10px 0; line-height: 35px; text-align: center;">
    <tr style="height: 30px;">
        <td>
            请输入添加的月份
        </td>
        <td>
            <asp:TextBox runat="server" ID="txt_yf"></asp:TextBox>
        </td>
         <td rowspan="2">
          <asp:Button ID="btn_Insert" Text="新增"  runat="server" />
        </td>
        <td rowspan="2">
          <input type="button" id="btn_fh" onclick="getfh()" value="查询表" />
        </td>
        <td rowspan="2">
          <asp:Button  ID="Button1" Text="下载"  runat="server" />
        </td>
    </tr>
</table>

<div style=" width:100%; text-align:center; height:30px;">
     <%
         int year = System.DateTime.Now.Year;
         int month = System.DateTime.Now.Month;
         EluZSProvider.EluZSDataProvider _EluZSDataProvider = (EluZSProvider.EluZSDataProvider)Antu.Core.Services.ProviderService.ProviderServiceMange.GetProvider("EluZSProvider");
         if (Page.Request["id"] !=null)
	{
        string sql = "select substr(Name,8,4) 年,substr(Name,13,1) 月 from zs_zrb  Where id = '" + Page.Request["id"] + "'";
         System.Data.DataTable dt = _EluZSDataProvider.GetTable(sql);
         string months = dt.Rows[0]["月"].ToString();
         string years = dt.Rows[0]["年"].ToString();
             %>
              <h3>信息系统值班表<%=years%>年<%=months%>月</h3>
             <%
	}else
	{
             %>
             <h3>信息系统值班表<%=year %>年<%=month%>月</h3>
             <%
	}
       
          %>
    
</div>

   
<asp:DataList ID="DataList1" runat="server" RepeatColumns="7" 
    RepeatDirection="Horizontal" Width="80%">
    <ItemTemplate>
    <table border='1px' style="height:40px; width:100px; margin-left:10px; margin-top:10px;" class='window_tab_list' cellpadding='0' cellspacing='0'  align='center'>
    <tr>
       <td align="center">
        <a href='ZhengShouZBBPersonEdit.aspx?zid=<%#Eval("zid") %>&type=<%#Eval("序列") %>'><%#Eval("序列") %>号
          <%#Eval("name")%> <%#Eval("atname")%></a>
        </td>
    </tr>
    </table>
    </ItemTemplate>
</asp:DataList>
 